let mongoose = require('mongoose'),
    resources_thumbs = new mongoose.Schema({
        pid: {
            type: Number,
            unique: true
        },
        mobile: String,
        userName: {
            type: String,
            trim: true
        },
        title: String,
        thumbsCount: {
            type: Number,
            default: 0
        },
        thumbsNameList: {
            type: Array,
            default: []
        },
        createTime: {
            type: Date,
            default: Date.now
        }
    });
mongoose.model('resources_thumbs', resources_thumbs);